Optimal. Leaf size=178 \[ \frac {64 a^3 (5 A+7 B) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {16 a^2 (5 A+7 B) \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{105 d}+\frac {2 a (5 A+7 B) \cos ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{35 d}+\frac {2 A \cos ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.29, antiderivative size = 178, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {3034, 4098,
3894, 3889} \begin {gather*} \frac {64 a^3 (5 A+7 B) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {16 a^2 (5 A+7 B) \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}{105 d}+\frac {2 a (5 A+7 B) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x) (a \sec (c+d x)+a)^{3/2}}{35 d}+\frac {2 A \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x) (a \sec (c+d x)+a)^{5/2}}{7 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3034
Rule 3889
Rule 3894
Rule 4098
Rubi steps
\begin {align*} \int \cos ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x)) \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x))}{\sec ^{\frac {7}{2}}(c+d x)} \, dx\\ &=\frac {2 A \cos ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{7 d}+\frac {1}{7} \left ((5 A+7 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \sec (c+d x))^{5/2}}{\sec ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a (5 A+7 B) \cos ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{35 d}+\frac {2 A \cos ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{7 d}+\frac {1}{35} \left (8 a (5 A+7 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \sec (c+d x))^{3/2}}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {16 a^2 (5 A+7 B) \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{105 d}+\frac {2 a (5 A+7 B) \cos ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{35 d}+\frac {2 A \cos ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{7 d}+\frac {1}{105} \left (32 a^2 (5 A+7 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {64 a^3 (5 A+7 B) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {16 a^2 (5 A+7 B) \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{105 d}+\frac {2 a (5 A+7 B) \cos ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{35 d}+\frac {2 A \cos ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.36, size = 99, normalized size = 0.56 \begin {gather*} \frac {2 a^2 \sqrt {\cos (c+d x)} \left (230 A+301 B+(115 A+98 B) \cos (c+d x)+3 (20 A+7 B) \cos ^2(c+d x)+15 A \cos ^3(c+d x)\right ) \sqrt {a (1+\sec (c+d x))} \sin (c+d x)}{105 d (1+\cos (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 12.73, size = 111, normalized size = 0.62
method | result | size |
default | \(-\frac {2 a^{2} \left (-1+\cos \left (d x +c \right )\right ) \left (15 A \left (\cos ^{3}\left (d x +c \right )\right )+60 A \left (\cos ^{2}\left (d x +c \right )\right )+21 B \left (\cos ^{2}\left (d x +c \right )\right )+115 A \cos \left (d x +c \right )+98 B \cos \left (d x +c \right )+230 A +301 B \right ) \left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{105 d \sin \left (d x +c \right )}\) | \(111\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 482 vs.
\(2 (154) = 308\).
time = 0.89, size = 482, normalized size = 2.71 \begin {gather*} \frac {5 \, \sqrt {2} {\left (315 \, a^{2} \cos \left (\frac {6}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 77 \, a^{2} \cos \left (\frac {4}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 21 \, a^{2} \cos \left (\frac {2}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) - 315 \, a^{2} \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) \sin \left (\frac {6}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) - 77 \, a^{2} \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) \sin \left (\frac {4}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) - 21 \, a^{2} \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) \sin \left (\frac {2}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) + 6 \, a^{2} \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 21 \, a^{2} \sin \left (\frac {5}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) + 77 \, a^{2} \sin \left (\frac {3}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) + 315 \, a^{2} \sin \left (\frac {1}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right )\right )} A \sqrt {a} - 28 \, {\left (75 \, \sqrt {2} a^{2} \cos \left (\frac {5}{4} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right )\right )\right ) \sin \left (2 \, d x + 2 \, c\right ) - 25 \, \sqrt {2} a^{2} \sin \left (\frac {3}{4} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right )\right )\right ) - 75 \, \sqrt {2} a^{2} \sin \left (\frac {1}{4} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right )\right )\right ) - 3 \, {\left (25 \, \sqrt {2} a^{2} \cos \left (2 \, d x + 2 \, c\right ) + \sqrt {2} a^{2}\right )} \sin \left (\frac {5}{4} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right )\right )\right )\right )} B \sqrt {a}}{840 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.14, size = 112, normalized size = 0.63 \begin {gather*} \frac {2 \, {\left (15 \, A a^{2} \cos \left (d x + c\right )^{3} + 3 \, {\left (20 \, A + 7 \, B\right )} a^{2} \cos \left (d x + c\right )^{2} + {\left (115 \, A + 98 \, B\right )} a^{2} \cos \left (d x + c\right ) + {\left (230 \, A + 301 \, B\right )} a^{2}\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{105 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\cos \left (c+d\,x\right )}^{7/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________